package com.three.storemanage.service.impl;

import com.three.core.entity.Car;
import com.three.core.vo.R;
import com.three.storemanage.mapper.CarMapper;
import com.three.storemanage.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @FileName: CarServiceImpl
 * @Description:
 * @Author: GYX
 * @CreateTime: 2025/3/27 19:44
 * @Version: 1.0.0
 */
@Service
public class CarServiceImpl implements CarService {
    @Autowired
    private CarMapper carMapper;

    @Override
    public R<List<Car>> selectByStoreId(Integer storeId,Integer userId) {
        List<Car> cars = carMapper.selectByStoreId(storeId,userId);
        return new R<>(200,"查询成功",cars);
    }
}
